home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
comm
/
comm2
/
hdrbbs11.lh0
/
HBBS
/
Source
/
Test
/
SharedLib
/
mylib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-25
|
688b
|
37 lines
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <exec/exec.h>
#include <exec/types.h>
#include <clib/exec_protos.h>
#include <clib/dos_protos.h>
#include <pragmas/exec_pragmas.h>
#include <pragmas/dos_pragmas.h>
#include "common.h"
struct DosLibrary *DOSBase;
struct ExecBase *SysBase;
struct Grow test;
int a=0;
void * __asm __saveds LIBblurgh(register __d1 int val)
{
SysBase = *(struct ExecBase **) 4L;
if (DOSBase = (struct DosLibrary *) OpenLibrary ("dos.library", 0))
{
a++;
test.i=10+a;
strcpy(test.string,"hello!");
Write(Output(),"moocow\n",7);
if (DOSBase) CloseLibrary ((struct Library *) DOSBase);
}
return(&test);
}